package org.grottarossa.data.exception;

public class QueryException extends Exception
{
	private static final long serialVersionUID = -5694918708571859068L;


	public enum QueryErrorCode
	{
		QUERY_NOT_FOUND,
		QUERY_EXECUTE_ERROR;
	}

	private QueryErrorCode errorCode;

	public QueryException(String javaError, QueryErrorCode errCode)
	{
		super(javaError);
		this.errorCode = errCode;
	}

	public QueryException(String msg)
	{
		super(msg);
	}

}
